package com.example.projects1.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//写在类上面的注解
@RestController
public class HelloController {
    //方法的注解
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }
}